QuickTime 4 API Documentation

Wired Movies and Sprites

| Previous | Chapter Contents | Chapter Top | Next |

Supporting External Movie Targets in Your Application

If you want your application to support external movie targets, you need to resolve the movie names or IDs to actual movie references. This is accomplished by installing a Movie Controller filter proc for each Movie Controller that filters for the mcActionGetExternalMovie action.

The parameter to the mcActionGetExternalMovie Movie Controller action is a pointer to a QTGetExternalMovieRecord .

First, you look at the targetType field. If it is set to kTargetMovieName , then return the movie and Movie Controller for the movie named by the MovieName field. If it is set to kTargetMovieID , then return the movie and Movie Controller for the movie with ID equal to the MovieID field.

If you cannot find a matching movie, then set theMovie and theController to nil .


© 1999 Apple Computer, Inc.

| Previous | Chapter Contents | Chapter Top | Next |